package com.kevin.action;

import java.util.HashMap;
import java.util.Map;

import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Fail;
import org.nutz.mvc.annotation.Ok;

/**
 * 
  * @ClassName: IndexAction 
  * @Description: 首页模块
  * @author 吕凯
  * @date 2012-10-29 上午10:25:02 
  *
 */
@IocBean
@At("/")
public class IndexAction {
	
	/**
	 * 查询首页数据
	 * 
	 * @param ioc
	 * @param req
	 * @return
	 */
	@At("/")
	@Ok("redirect:/index.shtml")
	@Fail("jsp:error.404")
	public Map<String, Object> showArticleInfoList() {
		Map<String, Object> map = new HashMap<String, Object>();
		return map;
	}
	/**
	 * 查询首页数据
	 * 
	 * @param ioc
	 * @param req
	 * @return
	 */
	@At
	@Ok("jsp:/jsp/show/index")
	@Fail("jsp:error.404")
	public Map<String, Object> index() {
		Map<String, Object> map = new HashMap<String, Object>();
		return map;
	}
}
